@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>题库管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-4">
                                <select class="form-control" id="categoryId">
                                    <option value="">顶级</option>
                                    @for(questionCategory in questionCategories){
                                    <option value="${questionCategory.id!}">${questionCategory.name!}</option>
                                    @}
                                </select>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索分类" icon="fa-search" clickFun="Question.search()"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="hidden-xs" id="QuestionTableToolbar" role="group">
                                @if(shiro.hasPermission("/question/add")){
                                <#button name="添加" icon="fa-plus" clickFun="Question.openAddQuestion()"/>
                                @}
                                @if(shiro.hasPermission("/question/update")){
                                <#button name="修改" icon="fa-plus" clickFun="Question.openQuestionDetail()" space="true"/>
                                @}
                                @if(shiro.hasPermission("/question/delete")){
                                <#button name="删除" icon="fa-plus" clickFun="Question.delete()" space="true"/>
                                @}
                                @if(shiro.hasPermission("/question/add")){
                                <#button name="导入" icon="fa-plus" clickFun="Question.goImport()" space="true"/>
                                @}
                                <#button name="导出" icon="fa-plus" clickFun="Question.export()" space="true"/>
                            </div>
                            <#table id="QuestionTable"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="${ctxPath}/static/modular/flagGlory/question/question.js"></script>
    @}
